class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.string :name
      t.string :journal
      t.integer :volume
      t.string :state
      t.boolean :shortcom, :default => false
      t.boolean :training, :default => false
      t.integer :annotate_time
      t.string :group, :default => "none"
      # For paperclip
      t.column :pdf_file_name, :string
      t.column :pdf_content_type, :string
      t.column :pdf_file_size, :integer
      t.column :pdf_updated_at, :datetime
      t.column :xml_file_name, :string
      t.column :xml_content_type, :string
      t.column :xml_file_size, :integer
      t.column :xml_updated_at, :datetime
      t.column :features_file_name, :string
      t.column :features_content_type, :string
      t.column :features_file_size, :integer
      t.column :features_updated_at, :datetime

      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
